package com.example.lightspush;

import android.content.Context;
import android.util.Log;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by xianren on 2017/11/18.
 */

public class LightPush {
    static Context mContext;
    private final static LightPush lightPush = new LightPush();

    public static LightPush getInstance(Context context) {
        mContext = context;
        return lightPush;
    }

    public void innit() {
        Log.i("push", "[ExampleApplication] onCreate");
        JPushInterface.setDebugMode(true);    // 设置开启日志,发布时请关闭日志
        JPushInterface.init(mContext);     		// 初始化 JPush
    }
}
